package com.example.demo.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
@Data
@ApiModel(value="Role对象", description="角色列表")
public class User {
	@ApiModelProperty(value = "ID主键")
	private Integer id; //id
	@ApiModelProperty(value = "用户编码")
	private String userCode; //用户编码
	@ApiModelProperty(value = "用户名称")
	private String userName; //用户名称6
	@ApiModelProperty(value = "用户密码")
	private String userPassword; //用户密码
	@ApiModelProperty(value = "性别")
	private Integer gender;  //性别
	@ApiModelProperty(value = "出生日期")
	public Date birthday;  //出生日期
	@ApiModelProperty(value = "电话")
	private String phone;   //电话
	public User(){}
	public User(Integer id, String userCode, String userName, String userPassword, Integer gender, Date birthday, String phone, String address, Integer userRole, Integer createdBy, Date creationDate, Integer modifyBy, Date modifyDate, Integer age, String userRoleName, Role role) {
		this.id = id;
		this.userCode = userCode;
		this.userName = userName;
		this.userPassword = userPassword;
		this.gender = gender;
		this.birthday = birthday;
		this.phone = phone;
		this.address = address;
		this.userRole = userRole;
		this.createdBy = createdBy;
		this.creationDate = creationDate;
		this.modifyBy = modifyBy;
		this.modifyDate = modifyDate;
		this.age = age;
		this.userRoleName = userRoleName;
		this.role = role;
	}
	@ApiModelProperty(value = "地址")
	private String address; //地址
	@ApiModelProperty(value = "用户角色")
	private Integer userRole;    //用户角色
	@ApiModelProperty(value = "创建者")
	private Integer createdBy;   //创建者
	@ApiModelProperty(value = "创建时间")
	private Date creationDate; //创建时间
	@ApiModelProperty(value = "更新者")
	private Integer modifyBy;     //更新者
	@ApiModelProperty(value = "更新时间")
	private Date modifyDate;   //更新时间
	@ApiModelProperty(value = "年龄")
	private Integer age;//年龄
	@ApiModelProperty(value = "用户角色名称")
	private String userRoleName;    //用户角色名称
	@ApiModelProperty(value = "用户角色对象")
	private Role role;




}
